package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface CommentApi {
    //根据动态id和互动类型，分页查询数据
    List<Comment> findComments(Integer page, Integer pagesize, Integer commentType, String movementId);

    //保存互动数据
    Integer save(Comment comment,Integer type);

    //判断互动是否存在
    Boolean hasComment(String movementId, Long userId, Integer commentType);

    //删除互动数据
    Integer delete(String movementId, Long userId, Integer commentType,Integer type);

    PageResult findMovComments(Integer page, Integer pagesize, Integer commentType, String messageId);
}
